<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="/WEB-INF/view/common/talent-header.jspf"%> 


	<ul class="nav nav-tabs" role="tablist">
	  <li role="presentation" ><a href="<%=request.getContextPath()%>/TalentServlet?command=main">审核状态</a></li>
	  <li role="presentation" class="active"><a href="<%=request.getContextPath()%>/ResumeServlet?command=main">个人简历</a></li>
	</ul>

    
    <div style="width:600px;margin:0 auto">
		<table class="table table-hover">
	      <caption>一、简历列表  &nbsp;&nbsp;&nbsp;<a href="<%=request.getContextPath()%>/view/talent/resume-add.jsp">新增简历</a></caption>
	      <thead>
	        <tr>
	          <th>编号</th>
	          <th>求职意向</th>
	          <th>操作</th>
	        </tr>
	      </thead>
	      <tbody>
	      <c:if test="${empty resumeList }">
		      <tr>
		      	<td colspan="3" align="center">还没有创建简历~</td>
			  </tr>
	      </c:if>
	       <c:if test="${!empty resumeList }">
		       <c:forEach items="${resumeList }" var="resumeList" varStatus="v">
			        <tr>
			          <td>${v.count}</td>
			          <td>${resumeList.intention }</td>
			          <td>
				          <a href="<%=request.getContextPath()%>/ResumeServlet?command=queryById&id=${resumeList.id}">修改</a>|
				          <a href="<%=request.getContextPath()%>/ResumeServlet?command=delete&id=${resumeList.id}"
							onclick="return confirm('是否删除？');">删除</a>
			          </td>
			        </tr>
		        </c:forEach>
	         </c:if>
	      </tbody>
	    </table>
    </div>

<%@ include file="/WEB-INF/view/common/footer.jspf"%>
	<script>
	/**
	 * 信息提示框
	 */
	toastr.options = {
	  "closeButton": true,
	  "debug": false,
	  "positionClass": "toast-top-right",
	  "onclick": null,
	  "showDuration": "300",
	  "hideDuration": "1000",
	  "timeOut": "3000",
	  "extendedTimeOut": "1000",
	  "showEasing": "swing",
	  "hideEasing": "linear",
	  "showMethod": "fadeIn",
	  "hideMethod": "fadeOut"
	}
	if ('${success }') {
		toastr.success('${success }');
	}
	if ('${error }') {
		toastr.error('${error }');
	}
	
	</script>